package com.push.web.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.push.web.mapper.BizArticleAppendixMapper;
import com.push.web.domain.BizArticleAppendix;
import com.push.web.service.IBizArticleAppendixService;

/**
 * 附件管理Service业务层处理
 *
 * @author yanxi
 * @date 2022-08-30
 */
@Service
public class BizArticleAppendixServiceImpl implements IBizArticleAppendixService
{
    @Autowired
    private BizArticleAppendixMapper bizArticleAppendixMapper;

    /**
     * 查询附件管理
     *
     * @param id 附件管理主键
     * @return 附件管理
     */
    @Override
    public BizArticleAppendix selectBizArticleAppendixById(Long id)
    {
        return bizArticleAppendixMapper.selectBizArticleAppendixById(id);
    }

    /**
     * 查询附件管理列表
     *
     * @param bizArticleAppendix 附件管理
     * @return 附件管理
     */
    @Override
    public List<BizArticleAppendix> selectBizArticleAppendixList(BizArticleAppendix bizArticleAppendix)
    {
        return bizArticleAppendixMapper.selectBizArticleAppendixList(bizArticleAppendix);
    }

    /**
     * 新增附件管理
     *
     * @param bizArticleAppendix 附件管理
     * @return 结果
     */
    @Override
    public int insertBizArticleAppendix(BizArticleAppendix bizArticleAppendix)
    {
        return bizArticleAppendixMapper.insertBizArticleAppendix(bizArticleAppendix);
    }

    /**
     * 修改附件管理
     *
     * @param bizArticleAppendix 附件管理
     * @return 结果
     */
    @Override
    public int updateBizArticleAppendix(BizArticleAppendix bizArticleAppendix)
    {
        return bizArticleAppendixMapper.updateBizArticleAppendix(bizArticleAppendix);
    }

    /**
     * 批量删除附件管理
     *
     * @param ids 需要删除的附件管理主键
     * @return 结果
     */
    @Override
    public int deleteBizArticleAppendixByIds(Long[] ids)
    {
        return bizArticleAppendixMapper.deleteBizArticleAppendixByIds(ids);
    }

    /**
     * 删除附件管理信息
     *
     * @param id 附件管理主键
     * @return 结果
     */
    @Override
    public int deleteBizArticleAppendixById(Long id)
    {
        return bizArticleAppendixMapper.deleteBizArticleAppendixById(id);
    }

    /**
     * 批量添加
     *
     * @param list 附件
     * @return 结果
     */
    @Override
    public int batchSave(List<BizArticleAppendix> list){
        return bizArticleAppendixMapper.batchSave(list);
    }
}
